package suxinyi.rbac.util;

import java.time.format.DateTimeFormatter;
import java.time.LocalDateTime;

/**
 * 工作类-日期时间操作
 *
 * @author 苏心怡
 * @since 2025/6/7 21:20
 */
public class DateTimeUtils {

    private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    private DateTimeUtils() {

    }

    public static String format(LocalDateTime dateTime) {
        return dateTime.format(formatter);
    }

}
